package com.example.myproject.jackson;

import java.math.BigDecimal;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Created by xi on 2018/9/23.
 */
public class UpdateSpecialConstant {
    public static final short SHORT_SPECAIL_VALUE = -32768;
    public static final int INT_SPECAIL_VALUE = -9999999;
    public static final long LONG_SPECAIL_VALUE = -999999999L;
    public static final float FLOAT_SPECAIL_VALUE = -999999999F;
    public static final double DOBULE_SPECAIL_VALUE = -999999999D;
    public static final BigDecimal SPECIAL_BIGDECIMAL_VALUE = new BigDecimal("-999999999");
    public static  Date SPECIAL_DATE_VALUE = null;
    static {
        try {
            SPECIAL_DATE_VALUE = new SimpleDateFormat("yyyy-mm-dd").parse("0000-00-00");
        } catch (ParseException e) {
            e.printStackTrace();
        }
    }

}
